package com.sch.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sch.hospital.Mapper.PatientdoctorMapper;
import com.sch.hospital.domain.Patientdoctor;
import com.sch.hospital.service.IPatientdoctorService;

/**
 * 患者挂号记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class PatientdoctorServiceImpl implements IPatientdoctorService 
{
    @Autowired
    private PatientdoctorMapper patientdoctorMapper;

    /**
     * 查询患者挂号记录
     * 
     * @param id 患者挂号记录主键
     * @return 患者挂号记录
     */
    @Override
    public Patientdoctor selectPatientdoctorById(Long id)
    {
        return patientdoctorMapper.selectPatientdoctorById(id);
    }

    /**
     * 查询患者挂号记录列表
     * 
     * @param patientdoctor 患者挂号记录
     * @return 患者挂号记录
     */
    @Override
    public List<Patientdoctor> selectPatientdoctorList(Patientdoctor patientdoctor)
    {
        return patientdoctorMapper.selectPatientdoctorList(patientdoctor);
    }

    /**
     * 新增患者挂号记录
     * 
     * @param patientdoctor 患者挂号记录
     * @return 结果
     */
    @Override
    public int insertPatientdoctor(Patientdoctor patientdoctor)
    {
        return patientdoctorMapper.insertPatientdoctor(patientdoctor);
    }

    /**
     * 修改患者挂号记录
     * 
     * @param patientdoctor 患者挂号记录
     * @return 结果
     */
    @Override
    public int updatePatientdoctor(Patientdoctor patientdoctor)
    {
        return patientdoctorMapper.updatePatientdoctor(patientdoctor);
    }

    /**
     * 批量删除患者挂号记录
     * 
     * @param ids 需要删除的患者挂号记录主键
     * @return 结果
     */
    @Override
    public int deletePatientdoctorByIds(Long[] ids)
    {
        return patientdoctorMapper.deletePatientdoctorByIds(ids);
    }

    /**
     * 删除患者挂号记录信息
     * 
     * @param id 患者挂号记录主键
     * @return 结果
     */
    @Override
    public int deletePatientdoctorById(Long id)
    {
        return patientdoctorMapper.deletePatientdoctorById(id);
    }
}
